import { UserLogin } from "@/api/user";

export default {
    state: {
        userInfo: 'hello my weex project'
    },
    mutations: {
        SET_USERINFO: (state, v) => {
            state.userInfo = v;
        }
    },
    actions: {
        async userLogin({ commit }) {
            const user = UserLogin();
            commit("SET_USERINFO", user.data);
        }
    }
};
